<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">
<style type="text/css">
         .datagrid-cell, .datagrid-cell-group, .datagrid-header-rownumber, .datagrid-cell-rownumber
         {
             text-overflow: ellipsis;
         }
</style> 
<div id="panel-ethic-dailyEvaluation" data-options="border:false;width:100%">
  	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
		
		<p>
			<span class="badge">提示</span>
			在此你可以对<span class="label-info"><strong>人员日常考评记录</strong></span>进行管理!
		</p>
	</div>
	<div class="condition easyui-panel" data-options="closed:true,openAnimation:'slide',closeAnimation:'slide'">
		<form class="condition-form">
			<table> 	
				<tr>
					<th>科室名称</th>
					<td><input name="org_name" id="org_name" type="text"  class="easyui-textbox easyui-validatebox" style="width:150px"/></td>
					<th>医生姓名</th>
					<td><input id="eval_name" name="eval_name" type="text"  class="easyui-textbox easyui-validatebox" style="width:150px"/></td>
					<th>记录时间</th>
					<td><input name="createat_start" id="createat_start" class="easyui-datebox easyui-validatebox" style="width:150px" data-options="required:true"/></td>
					<th>--</th>
					<td><input id="createat_end" name="createat_end" class="easyui-datebox easyui-validatebox" style="width:150px"/></td>					
				</tr>				
			</table>
		</form>
	</div>
	
	<div class="search-mm">
			
			<div name="org_name_like">科室名称</div>
			<div name="eval_name_like">医生姓名</div>			
				
	</div>
    <div class="tb-list" style="padding:2px 0">
		<table cellpadding="0" cellspacing="0"> 
			<tr>
				<td style="padding-left:2px" class="list-btn">
			
				</td>		
				<td style="padding-left:2px">
					<input class="searchbox" type="text"/>
					<a href="javascript:void(0);" class="easyui-linkbutton conditon-search function-btn"  plain="true" >查询条件</a>
					<a href="javascript:void(0);" class="easyui-linkbutton conditon-search function-btn" iconCls="icon-search" plain="true" >执行查询</a>
				</td>				
			</tr>
		</table>
	</div>
	
	<table class="easyui-datagrid dg-list" 
		data-options="rownumbers:true,
		animate: true,						
		striped:true,
		border:true,
		singleSelect:false,
		idField: 'id',						
		fitColumns: true,
		checkOnSelect:true,
		selectOnCheck:true,
		pagination : true">
		
		<thead>						
			<tr>
				<th field="ck" checkbox="true" ></th>
				<th field="eval_name" width="20" align="center">医生姓名</th>				
				<th field="org_name" width="40" halign="center" align="left">科室名称</th>			
				<th field="item_name" width="60" halign="center" align="left" data-options="{
					 formatter: function(value,row,index){
                      return '<span  title='+value+'>'+value+'</span>'  
                    }
				}">加扣分项</th>
				<th field="createat" width="30" align="center">记录时间</th>
				<th field="record_name" width="20" align="center">记录人</th>
				<th field="eval_content" width="60" halign="center" align="left" data-options="{
					 formatter: function(value,row,index){
                      return '<span  title='+value+'>'+value+'</span>'  
                    }
				}">内容</th>
				<th field="status" width="20" align="center" data-options="{
					formatter:function(value,row,index){
						if(value){
							switch(value){
								case '0':
								return '<span><font color=blue>已提交</font></span>';
								break;
								case '1':
								return '<span><font color=green>审核通过</font></span>';
								break;
								case '-1':
								return '<span><font color=red>未通过</font></span>';
								break;
							}
						}
						return null;						
					}
				}">审核状态</th>	
				
				<th field="arc_num" width="20" align="center" data-options="{
					formatter:function(value,row,index){
						if(value && value>=1){
							return '<span><font color=blue>附件</font></span>';
						}else{
							return null
						}
					}
				}
				">附件</th>
																	
			</tr>						
			
		</thead>
		
	</table>
	  
	<div id='ethic-dailyEvaluation-win' class="easyui-window" data-options="closed:true" title='日常考评'>  		
	</div>
</div> 

 
<script>
requirejs(['listPageModule','dailyEvaluation','domReady!'],function(flowedit,dailyEvaluation,doc){
	flowedit.init({doc:doc,
		rootId:'panel-ethic-dailyEvaluation',
		subSystemCode:'ethic',
		moduleCode:'dailyEvaluation',
		editWindow:'ethic-dailyEvaluation-win',
		edit_window_height:500,		
		listToolBar:'div.tb-list',		
		initElement:dailyEvaluation.initElement,
		auditEnable:true
	});
});	
</script>

